package com.ghpt.service.impl;
import com.ghpt.mapper.XQXiangYingMapper;
import com.ghpt.pojo.XQXiangYing;
import com.ghpt.service.XQXiangYingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class XQXiangYingServiceImpl implements XQXiangYingService {
    @Autowired
    private XQXiangYingMapper xQXiangYingMapper;

    @Override
    public XQXiangYing findXQXiangYingById(Long id) {
        if (id != null) {
            return xQXiangYingMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(XQXiangYing xQXiangYing) {
        return xQXiangYingMapper.updateById(xQXiangYing);//更新成功为1否则为0
    }
}
